package edu.ptu.springcloud.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserInfoController {

    @GetMapping("/useInfo/add")
    public String addUserInfo() {
        return "order---->userservice-add";
    }

    @GetMapping("/userInfo/get/{id}")
    public String queryUserByUserId(@PathVariable("id") Long id) {
        return "userInfoService.queryUserByUserId(id)";
    }
}
